package spec.asumuliu.unit5.myqueue;

import java.util.LinkedList;

public class MyQueue {
    LinkedList list=new LinkedList();
    //入队
    void put(Object o){ list.addLast(o);}
    // 出队
    Object get(){return list.removeFirst();}
    //队列大小
    Object dx(){
        return list.size();
    }
    //{队列是否为空
    boolean empty(){return list.isEmpty();}
}
